<?php

namespace App\Http\Requests\Account;

use App\Http\Requests\CommonRequest;
use Illuminate\Foundation\Http\FormRequest;

class CommonCoinCoinLogRequest extends FormRequest
{
    use CommonRequest;

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = [
            'id' => 'required|integer',
        ];
        return $rules;
    }

    public function messages()
    {
        $messages = [
            'id.required' => 'ID必须',
            'id.integer' => 'ID必须为整数',
        ];
        return $messages;
    }

}
